<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>xx</title>
    <style>
        .green{
            color:green
        }
    </style>
</head>
<body>
<table>
    <thead>
        <tr>
            <td>ID</td>
            <td>部门编号</td>
            <td>部门名称</td>
            <td>时间</td>
        </tr>
    </thead>
    <tbody>
        <!--/*@thymesVar id="depts" type="java.util.List"*/-->
        <!--/*@thymesVar id="dept" type="com.winter.model.entity.Dept"*/-->
        <tr th:each="dept:${depts}">
            <td>
                <a th:href="@{http://www.baidu.com}" th:text="${dept.id}" th:class="${dept.id gt 1000?'green':''}" target="_blank"></a>
            </td>
            <td th:text="${dept.deptCode}"></td>
            <td th:text="${dept.deptName}"></td>
            <td th:text="${#dates.format(dept.createTime,'yyyy-MM-dd')}"></td>
        </tr>
    </tbody>
</table>

<div th:replace="~{templates/footer :: copy_right}"></div>
</body>
</html>